using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace TMFileManager.win32 {
    [ComImport(),
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
    GuidAttribute("000214e4-0000-0000-c000-000000000046")]
    public interface IContextMenu : IUnknown {
        [PreserveSig()]
        int QueryContextMenu(
            uint hMenu,
            uint indexMenu,
            int idCmdFirst,
            int idCmdLast,
            uint uFlags);

        [PreserveSig()]
        void InvokeCommand(IntPtr pici);

        [PreserveSig()]
        void GetCommandString(
            int idcmd,
            uint uflags,
            int reserved,
            StringBuilder commandstring,
            int cch);
    }
}
